﻿<Window x:Class="ComicViewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid Background="#FF1570A6">
        <!--<Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <Button Name="BtnHome" Content="Home" Click="BtnHome_Click"/>
            <Button Content="Back" Click="Button_Click" />
        </StackPanel>-->
        <Frame Grid.Row="1" Name="MainFrame" NavigationUIVisibility="Hidden" />
        
        <Menu HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,100,0">
            <MenuItem Header="浏览">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"/>
                        <ColumnDefinition Width="auto"/>
                    </Grid.ColumnDefinitions>
                    <MenuItem Header="测试文字1" Grid.Row="0" Grid.Column="0"/>
                    <MenuItem Header="测试文字2" Grid.Row="0" Grid.Column="1"/>
                    <MenuItem Header="测试文字3" Height="100" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
                        <MenuItem.Background>
                            <ImageBrush ImageSource="/ComicViewer;component/Resources/bg1.png" Stretch="UniformToFill" TileMode="None" />
                        </MenuItem.Background>
                    </MenuItem>
                </Grid>
            </MenuItem>
            <MenuItem Header="浏览3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto"/>
                        <RowDefinition Height="auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"/>
                        <ColumnDefinition Width="auto"/>
                    </Grid.ColumnDefinitions>
                    <MenuItem Header="测试文字3" Height="100" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
                        <MenuItem.Background>
                            <ImageBrush ImageSource="/ComicViewer;component/Resources/bg1.png" Stretch="UniformToFill" TileMode="None" />
                        </MenuItem.Background>
                    </MenuItem>
                    <MenuItem Header="测试文字1" Grid.Row="1" Grid.Column="0">
                        <StackPanel>
                            
                            <Image Source="/ComicViewer;component/Resources/sc.png" Height="100" Width="100" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                            <TextBlock Text="Wenzi Neirong"/>
                            <TextBlock Text="Wenzi Neirong"/>
                        </StackPanel>
                    </MenuItem>
                    <MenuItem Grid.Row="1" Grid.Column="1">
                        <MenuItem.Header>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto"/>
                                <RowDefinition Height="auto"/>
                                <RowDefinition Height="auto"/>
                            </Grid.RowDefinitions>
                            <Image Grid.Row="0" Source="/ComicViewer;component/Resources/sc.png" Height="100" Width="100" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                            <TextBlock Grid.Row="1" Text="Wenzi Neirong2"/>
                            <TextBlock Grid.Row="2" Text="Wenzi Neirong2"/>
                            </Grid>
                        </MenuItem.Header>
                    </MenuItem>
                </Grid>
            </MenuItem>
        </Menu>
        <Button Content="Close" Name="_btnClose" Click="_btnClose_Click" HorizontalAlignment="Right" VerticalAlignment="Top"/>

    </Grid>
</Window>
